//package com.pro.common.modules.service.dependencies.config.component;
//
//import com.pro.common.modules.service.dependencies.commondata.service.LoginInfoContext;
//import jakarta.servlet.*;
//import org.springframework.stereotype.Component;
//
//import java.io.IOException;
//
//@Component
//public class LoginInfoFilter implements Filter {
//    @Override
//    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
//            throws IOException, ServletException {
//        try {
//            chain.doFilter(request, response);
//        } finally {
//            LoginInfoContext.clear(); // 确保请求结束后清理 ThreadLocal 避免内存溢出
//        }
//    }
//}
